package com.nativetalk.service.four.member;

import com.nativetalk.base.RetInfo;
import com.nativetalk.bean.member.TdNtMember;
import com.nativetalk.bean.recording.TdNtMembRecordingList;

import java.math.BigDecimal;
import java.util.List;


/**
 * Created by wangzheng on 2017/3/9.
 */
public interface FourMemberService {
    /**
     * @purpose 根据用户Id查找上课录音
     * @version 4.1
     * @author wangzheng
     * @param memb_id
     * @param currentPage
     * @param pageSize
     * @return RetInfo
     */
    public RetInfo findRecordingByMembId(int memb_id, int currentPage, int pageSize);

    /**
     * @purpose 根据用户Id查找上课录音
     * @version 4.1
     * @author wangzheng
     * @param memb_id
     * @return RetInfo
     */
    public RetInfo updateRecordingByMembId(int memb_id, String state);

    /**
     * @purpose 用第三方充值后更新账户的余额
     * @version 4.1
     * @author wangzheng
     * @param tdNtMember
     * @param amount
     * @param orderNo
     * @return RetInfo
     */
    public RetInfo updateMemberBalance(TdNtMember tdNtMember, BigDecimal amount, String orderNo);

    /**
     * @purpose 获取用户绑定账号信息
     * @version 4.1
     * @author wangzheng
     * @param tdNtMember
     * @return RetInfo
     */
    public RetInfo findMemberBindStatus(TdNtMember tdNtMember);

    /**
     * @purpose 用户绑定第三方账号
     * @version 4.1
     * @author wangzheng
     * @param tdNtMember
     * @param thirdParty_type
     * @param third_token
     * @return RetInfo
     */
    public RetInfo memberBindThirdParty(TdNtMember tdNtMember, String thirdParty_type, String third_token);

    /**
     * @purpose 用户解绑第三方账号
     * @version 4.1
     * @author wangzheng
     * @param tdNtMember
     * @param thirdParty_type
     * @return RetInfo
     */
    public RetInfo memberUnBindThirdParty(TdNtMember tdNtMember, String thirdParty_type);

}
